<template >
<div class="index">
  <div class="todayO">
    <div class="title">
      <div  @click="toCart">查看菜单 </div>
      <div @click="toTable">点单</div>
    </div>

  </div>
</div>


</template>

<script>
  export default {
  name: "Index",
  data() {
    return {
    };
  },
  methods: {
    toCart() {
      this.$router.push({
        path: '/dish/dish2',
        query: {
        }
      })
    },
    toTable() {
      this.$router.push({
        path: '/table/table',
        query: {
        }
      })
    },

  }
};
</script>

<style scoped>
body{

}
  .todayO{
    /*background-image: linear-gradient(rgba(0, 0, 255, 0.5), rgba(255, 255, 0, 0.5)),*/
    /*url("../assets/images/a0996433e7a4fe9782385eee24df11a.jpg");*/
    background-image: url("../assets/images/a0996433e7a4fe9782385eee24df11a.jpg");
    /*position: relative;*/
    width:100%;
    height:100%;
    position:fixed;
    background-size:100% 100%;
 opacity: 0.8;
  }
  .box{
    position: absolute;
    top: -280px;
    left: 100px;
    /*background-color: #00afff;*/
    padding: 50px 15px;
    width: 400px;
    box-shadow: 1px 1px 1px 1px #9c9ca5;
  }
  .box1{
    position: absolute;
    top: -280px;
    left:550px;
    /*background-color: #00afff;*/
    padding: 50px 15px;
    width: 400px;
    box-shadow: 1px 1px 1px 1px #9c9ca5;
  }
  .title{
    margin: 180px auto 30px auto;
    text-align: center;
    font-size: 100px;
    color: black;;
  }

  </style>

